import request from '@/utils/request'

export function fetchMetadataTableList(data) {
  return request({
    url: '/system/masterdata/MetadataTable/list',
    method: 'post',
    data
  })
}

export function getMetadataTable(id) {
  return request({
    url: '/system/masterdata/MetadataTable/detail/' + id,
    method: 'get',
    params: { id }
  })
}

export function createMetadataTable(data) {
  return request({
    url: '/system/masterdata/MetadataTable/add',
    method: 'post',
    data
  })
}

export function updateMetadataTable(data) {
  return request({
    url: '/system/masterdata/MetadataTable/update',
    method: 'post',
    data
  })
}

export function deleteMetadataTable(ids) {
  return request({
    url: '/system/masterdata/MetadataTable/delete',
    method: 'post',
    data: { ids }
  })
}

export function exportMetadataTable(data) {
  return request({
    url: '/system/masterdata/MetadataTable/export',
    method: 'post',
    data
  })
}
